import { Rule } from "./types";

export const PandasVetRuleList: Rule[] = [
    {
        code: "PD002",
        name: "pandas-use-of-inplace-argument",
        descEn: "inplace=True should be avoided; it has inconsistent behavior",
        descCn: "",
        autoFix: true,
    },
    {
        code: "PD003",
        name: "pandas-use-of-dot-is-null",
        descEn: ".isna is preferred to .isnull; functionality is equivalent",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PD004",
        name: "pandas-use-of-dot-not-null",
        descEn: ".notna is preferred to .notnull; functionality is equivalent",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PD007",
        name: "pandas-use-of-dot-ix",
        descEn: ".ix is deprecated; use more explicit .loc or .iloc",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PD008",
        name: "pandas-use-of-dot-at",
        descEn: "Use .loc instead of .at. If speed is important, use numpy.	",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PD009",
        name: "pandas-use-of-dot-iat",
        descEn: "Use .iloc instead of .iat. If speed is important, use numpy.",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PD010",
        name: "pandas-use-of-dot-pivot-or-unstack",
        descEn: ".pivot_table is preferred to .pivot or .unstack; provides same functionality",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PD011",
        name: "pandas-use-of-dot-values",
        descEn: "Use .to_numpy() instead of .values",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PD012",
        name: "pandas-use-of-dot-read-table",
        descEn: ".read_csv is preferred to .read_table; provides same functionality	",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PD013",
        name: "pandas-use-of-dot-stack",
        descEn: ".melt is preferred to .stack; provides same functionality",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PD015",
        name: "pandas-use-of-pd-merge",
        descEn: "Use .merge method instead of pd.merge function. They have equivalent functionality.	",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PD901",
        name: "pandas-df-variable-name",
        descEn: "df is a bad variable name. Be kinder to your future self.",
        descCn: "",
        autoFix: false,
    },
];